package com.wodan.zhongjinjicang.common.orm;

import java.util.List;


/**
 * 通用dao接口
 * @ClassName: RdsCommonWriteDao 
 * @author Administrator
 * @date 2015-11-5 上午10:36:22 
 * @history 
 * 
 * @param <T>
 */
public interface RdsCommonWriteDao <T>{
	/**
	 * 插入
	 * @Description:
	 * @param entity
	 * @return
	 */
	public int insert(final T entity);
	
	/**
	 * 更新
	 * @Description:
	 * @return
	 */
	public int update(final T entity);
	
	/**
	 * 删除
	 * @Description:
	 * @param id
	 * @return
	 */
	public int deleteById(final Long id);
	
	/**
	 * 批量插入
	 * @Description:
	 * @param entityList
	 */
	public void batchInsert(final List<T> entityList);
	
	/**
	 * 批量删除
	 * @Description:
	 * @param entityList
	 */
	public void batchDelete(final List<T> entityList);
}
